home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / chichi.swf / scripts / frame_235 / PlaceObject2_171_717 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-26  |  1.2 KB  |  47 lines

  1. onClipEvent(enterFrame){
  2.    if(_parent.life > 3)
  3.    {
  4.       if(this._y <= 561)
  5.       {
  6.          this._y += 8;
  7.       }
  8.       else
  9.       {
  10.          _global.mojo -= 2;
  11.          this._x = random(28) * 10 + 10;
  12.          this._y = - random(500) - 500;
  13.       }
  14.    }
  15.    if(this.hitTest(_parent.drag) and _global.die == false)
  16.    {
  17.       _parent.drag.gotoAndPlay("die");
  18.       _parent.shak.gotoAndPlay(1);
  19.       _parent.attachMovie("t2_fader","fader2",100);
  20.       _parent.fader2._x = this._x;
  21.       _parent.fader2._y = this._y;
  22.       _parent.fader2._xscale = 100;
  23.       _parent.fader2._yscale = 100;
  24.       this._x = random(28) * 10 + 10;
  25.       this._y = - random(500) - 500;
  26.       _parent.score -= 200;
  27.    }
  28.    if(this.hitTest(_parent.shot1))
  29.    {
  30.       _parent.shot1.gotoAndStop(1);
  31.       _global.kills += 1;
  32.       _parent.shak.gotoAndPlay(1);
  33.       _parent.attachMovie("t2_fader","fader2",100);
  34.       _parent.fader2._x = this._x;
  35.       _parent.fader2._y = this._y;
  36.       _parent.fader2._xscale = 100;
  37.       _parent.fader2._yscale = 100;
  38.       _parent.score += 200;
  39.       this._x = random(28) * 10 + 10;
  40.       this._y = - random(500) - 500;
  41.    }
  42.    if(_global.bosstime > 0)
  43.    {
  44.       this.gotoAndStop("exit");
  45.    }
  46. }
  47.